<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>所有试卷</title>
</head>
<body>
	<h2>所有试卷</h2>

	<table border="1" bordercolor="#333">
		<c:forEach var="p" items="${papers}">
			<tr>
				<td>试卷ID：${p.id} 试卷名：${p.name} &nbsp;&nbsp;&nbsp;
					考试时间：<fmt:formatDate  value="${p.examTime}" pattern="yyyy年MM月dd日  HH:mm"/></td>
				<td><a href="/paper/delete?id=${p.id}" onclick="return confirm('确认删除吗')">删除</a> <a href="/paper/create?id=${p.id}">编辑</a></td>
			</tr>
		</c:forEach>
	</table>
	
	<p>符合条件的记录数${p.total}条, 共${p.pages}页</p>
    <a href="?p=${p.firstPage}">第一页</a>
    <a href="?p=${p.prePage}"><<</a>
    <a href="?p=${p.nextPage}">>></a>
    <a href="?p=${p.lastPage}">最后页</a>
	
</body>
</html>